package com.itheima.a12abstract;

public class Test {
    public static void main(String[] args) {
        Animals a = new Dog("小黑",2);
        System.out.println(a.getName() + " " + a.getAge());
        a.eat();
        a.drink();
    }
}
